<ion-view view-title="聊天列表" cache-view="false" hide-back-button="true" ng-init="init()">
  <ion-content> 
  <section class="g_main">
    <!-- 常用信息列表 -->
    <section class="common_info">
      <p ng-if="nochat" style="text-align: center">您还没有产生过对话记录</p>
      <ul>
        <li ng-repeat="(id, userInfo) in persionlist" ng-click="tochat(id)" ng-if="myInfo.member_id!==id">
          <strong class="header" ng-if="userInfo.unread">{{userInfo.nickname}}({{userInfo.unread}}条未读消息)</strong>
          <strong class="header" ng-if="!userInfo.unread">{{userInfo.nickname}}</strong>
          <img ng-src="{{userInfo.img}}">
        </li>
      </ul>
    </section>
  </section>   
  </ion-content>
  <footer class="g_footer">
    <section class="foot_menu">
      <ul>
        <li class="m_index" ng-click="toHome()"><a class='openwebview'>首页</a></li>
        <li class="m_find" ng-click="toFind()"><a class='openwebview'>发现</a></li>
        <li class="m_find" ng-click="toCar()"><a class='openwebview'>车源信息</a></li>
        <li class="m_find" ng-click="toship()"><a class='openwebview'>船源信息</a></li>
        <li class="m_list current" ng-click="tochatList()"><a class='openwebview'>对话</a></li>
        <li class="m_my" ng-click="toMine()"><a class='openwebview'>我</a></li>
      </ul>
    </section>
  </footer>  
</ion-view>
